<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>常用功能</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../../js/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../../js/layuiadmin/style/admin.css" media="all">
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
          <div class="layui-col-md6">
            <div class="layui-card">
              <div class="layui-card-header">发送数据到目标服务器</div>
              <div class="layui-card-body">
                <p>说明：发送数据到目标服务器</p>
                <pre id="command">storescu -aet TX_RETRY -aec TXPACS +sd +r -d 10.10.22.47 11111 ./DICOM文件夹路径</pre>
                <button class="layui-btn layui-btn-primary" onclick="copyCommand()">复制命令</button>
              </div>
            </div>
          </div>
        </div>
      </div>
<script src="../../../js/jquery.min.js"></script>
<script src="../../../js/layuiadmin/layui/layui.js"></script>
<script>
    layui.use(['layer'], function(){
      var layer = layui.layer;
    });
  
    function copyCommand() {
      var command = document.getElementById("command").innerText;
      navigator.clipboard.writeText(command).then(function() {
        layer.msg('命令已复制到剪贴板,请修改相关参数');
      }, function() {
        layer.msg('复制失败，请手动复制');
      });
    }
  </script>
</body>
</html>